import { Prism } from "react-syntax-highlighter"
import { atomDark } from 'react-syntax-highlighter/dist/esm/styles/prism'

function SyntaxHighlighter({ language = 'jsx', children }) {
  return (
    <Prism
      language={language}
      showLineNumbers
      style={atomDark}
      children={children}
    />
  )
}

export default SyntaxHighlighter